import pytest

from baseAPI.base_api import BaseAPI
# 用于获取一些全局共享得数据，例如token
@pytest.fixture(autouse=True,scope='session')
def my_login_token():
    my_token = BaseAPI()

    # 用户登录
    my_token.get_token("/login","admin","admin1234")

    return my_token.response.json()['data']


